import java.util.function.Function;

/**
 * @author zhu
 * @date 2024-04-10
 */
public class MainTest02 {
    public static void main(String[] args) {
        Function<String, Student> fun = (s)->{
            String[] str= s.split(",");
            String name = str[0];
            Integer age = Integer.parseInt(str[1]);

            return new Student(name,age+1) ;
        };

        System.out.println(fun.apply("张三,18"));


    }
}
